package com.example.foobar.dao.service;

import com.example.foobar.dto.DABaseDTO;
import com.example.foobar.entity.DaUserChangeRecord;
import com.example.foobar.param.DaUserChangeRecordPageParam;
import io.geekidea.springbootplus.framework.common.service.BaseService;
import io.geekidea.springbootplus.framework.core.pagination.Paging;

import java.util.List;
import java.util.Map;

/**
 * 新增用户数记录 服务类
 *
 * @author 郑英奔
 * @since 2021-06-19
 */
public interface DaUserChangeRecordDaoService extends BaseService<DaUserChangeRecord> {

    /**
     * 保存
     *
     * @param daUserChangeRecord
     * @return
     * @throws Exception
     */
    boolean saveDaUserChangeRecord(DaUserChangeRecord daUserChangeRecord);

    /**
     * 修改
     *
     * @param daUserChangeRecord
     * @return
     * @throws Exception
     */
    boolean updateDaUserChangeRecord(DaUserChangeRecord daUserChangeRecord);

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteDaUserChangeRecord(Long id);


    /**
     * 获取分页对象
     *
     * @param daUserChangeRecordPageParam
     * @return
     * @throws Exception
     */
    Paging<DaUserChangeRecord> getDaUserChangeRecordPageList(DaUserChangeRecordPageParam daUserChangeRecordPageParam);


    List<DABaseDTO> getUserActiveRate(Map<String, Object> params);

    List<DABaseDTO> getUserActiveRateForYingMa(Map<String, Object> params);

    List<DABaseDTO> getQrcodeUserActiveRateforYingMa(Map<String, Object> params);
}
